package guoanmaker.operator.business.service;

import java.util.List;

import javax.transaction.Transactional;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import guoanmaker.operator.business.model.BackgroundPicture;

import guoanmaker.operator.business.repository.OperatorBackgroundPictureRepository;

@Service
public class OperatorBackgroundPictureService implements OperatorBackgroundPictureServiceInterface {
	@Autowired
private OperatorBackgroundPictureRepository operatorBackgroundPictureRepository;
	
	  @Override
	  @Transactional
	    public BackgroundPicture saveBackgroundPicture(BackgroundPicture backgroundPicture) {
	        return operatorBackgroundPictureRepository.save(backgroundPicture);
	    }
	  
	  
	  @Override
	    public List<BackgroundPicture> getAllBackgroundPicture() {
	        return operatorBackgroundPictureRepository.findAll();
	    }
}
